package vashion.azeroth.core.manager.personal.tran;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vashion.azeroth.core.dao.BaseDao;
import vashion.azeroth.core.manager.impl.BaseManagerImpl;
import vashion.azeroth.core.personal.tran.dao.PersonalDisburseDao;
import vashion.azeroth.core.personal.tran.pojo.PersonalDisburse;
import vashion.azeroth.core.personal.tran.pojo.PersonalDisburseExt;

@Service
public class PersonalDisburseManager extends BaseManagerImpl<PersonalDisburse> {

	@Autowired
	private PersonalDisburseDao disburseDao;
	
	@Override
	public BaseDao<PersonalDisburse> getDao() {
		return disburseDao;
	}
	
	public PersonalDisburse getByDisburseNo(String disburseNo) {
		return disburseDao.getByDisburseNo(disburseNo);
	}
	
	public PersonalDisburse getByDisburseNoWithLock(String disburseNo) {
		return disburseDao.getByDisburseNoWithLock((disburseNo));
    }
	
	public List<PersonalDisburseExt> getDisburseList(PersonalDisburseExt disburse) {
		return disburseDao.getDisburseList(disburse);
	}
    
    public int getDisburseListCnt(PersonalDisburse disburse) {
    	return disburseDao.getDisburseListCnt(disburse);
    }

    public List<PersonalDisburse> findRecalculateOrder(PersonalDisburse disburse) {
    	return disburseDao.findRecalculateOrder(disburse);
    }
    
    public List<PersonalDisburseExt> getOrderManagerDisburseList(PersonalDisburseExt disburse) {
    	return disburseDao.getOrderManagerDisburseList(disburse);
    }
    
    public int getOrderManagerDisburseListCnt(PersonalDisburse disburse) {
    	return disburseDao.getOrderManagerDisburseListCnt(disburse);
    }
}
